package com.parkingspace.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.parkingspace.entity.Property;
import com.parkingspace.service.impl.PropertyServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * <p>
 * 物业表 服务类
 * </p>
 *
 * @author Gapper
 * @since 2021-05-24
 */
public interface IPropertyService extends IService<Property> {
    @Autowired
    PropertyServiceImpl propertyServiceImpl = null;

    //    List<Property> getPropertyList(String propertyName, Page page);
    IPage getPropertyList(String token,String propertyName, Page page);

    boolean addProperty(Property property);

    boolean delPropertyById(Long propertyId);

    Property getPropertyById(Long propertyId);

    boolean updPropertyById(Property property);

    boolean updPropertyShareById(Property property);


//    List<Property> getPropertyByName(String property_name);

//    List<Property> getPropertyList();
}
